package com.xyzh05.service.impl;

import java.util.List;

import javax.jws.WebService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xyzh05.dao.MajorDao;
import com.xyzh05.model.Major;
import com.xyzh05.service.MajorManager;

@Service("majorManager")
@WebService(serviceName = "MajorService", endpointInterface = "com.xyzh05.service.MajorManager")
public class MajorManagerImpl extends GenericManagerImpl<Major, Long> implements MajorManager {
    MajorDao majorDao;

    @Autowired
    public MajorManagerImpl(MajorDao majorDao) {
        super(majorDao);
        this.majorDao = majorDao;
    }

	public List<Major> queryMajorAutoComplete(String keyword) {
		return majorDao.queryMajorAutoComplete(keyword);
	}
}